﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<OnlineMovieTicket.Models.LogOnModel>" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>

<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">

    <% using (Html.BeginForm()) { %>
        <br /><br />
        <div class="fontWhite">
            <fieldset>
                <legend> <b>Account Information </b></legend>
                <br />
                <table width=100%><tr><td align=center>
                        <table cellpadding="4" cellspacing="6" class="pageBackGround">
                            <tr><td colspan="4" align="left"> <%: Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.") %></td></tr>
                            <tr><td height="10px" align="left" colspan="4">Please enter your username and password.  </td></tr>
                            <tr>                            
                                    <td align="left"><%: Html.LabelFor(m => m.UserName) %> </td>
                                    <td width="1px" align="left">:</td>
                                    <td align="left"><%: Html.TextBoxFor(m => m.UserName) %></td>
                                    <td align="left"><%: Html.ValidationMessageFor(m => m.UserName) %></td>    
                            </tr>
                            <tr>
                                <td align="left"> <%: Html.LabelFor(m => m.Password) %></td>
                                <td width="1px" align="left">:</td>
                                <td align="left"> <%: Html.PasswordFor(m => m.Password) %> </td>
                                <td align="left"><%: Html.ValidationMessageFor(m => m.Password) %></td>
                            </tr> 
                            <tr>
                                <td colspan="4" align="left"> <%: Html.CheckBoxFor(m => m.RememberMe) %>
                                        <%: Html.LabelFor(m => m.RememberMe) %></td>                                
                            </tr>  
                            <tr>
                                <td colspan="4" align="left"> <input type="submit" value="Log On"  class="btn"/></td>
                            </tr>                                
                        </table><br />
                </td></tr></table>
                
            </fieldset>
        </div>
        <br />
    <% } %>
</asp:Content>
